﻿using System;
using System.Runtime.InteropServices;

namespace Reader
{
    public class TermbDll_100D
    {
        [DllImport("termb.dll", CharSet = CharSet.Auto)]
        public static extern int CVR_Authenticate();
        [DllImport("termb.dll", CharSet = CharSet.Auto)]
        public static extern int CVR_CloseComm();
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int CVR_GetSAMID(ref byte strTmp);
        [DllImport("termb.dll", CharSet = CharSet.Auto)]
        public static extern int CVR_InitComm(int Port);
        [DllImport("termb.dll", CharSet = CharSet.Auto)]
        public static extern int CVR_Read_Content(int Active);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetDepartment(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetEndDate(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetFPDate(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetManuID(ref byte strTmp);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetPeopleAddress(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetPeopleBirthday(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetPeopleIDCode(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CharSet = CharSet.Ansi)]
        public static extern int GetPeopleName(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CharSet = CharSet.Ansi)]
        public static extern int GetPeopleNation(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetPeopleSex(ref byte strTmp, ref int strLen);
        [DllImport("termb.dll", CallingConvention = CallingConvention.StdCall, CharSet = CharSet.Ansi)]
        public static extern int GetStartDate(ref byte strTmp, ref int strLen);
    }
}

